package com.echat.business.work.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 开发团人员配置表
 * </p>
 *
 * @author chentl123
 * @since 2019-06-17
 */
@TableName("echo_other_worker")
public class Worker extends Model<Worker> {

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 名字
     */
    private String name;
    /**
     * ip地址
     */
    private String ipAddress;
    /**
     * 创建人
     */
    private Integer createby;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 当日是否更新完成
     */
    private Integer hasRecordToday;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public Integer getCreateby() {
        return createby;
    }

    public void setCreateby(Integer createby) {
        this.createby = createby;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getHasRecordToday() {
        return hasRecordToday;
    }

    public void setHasRecordToday(Integer hasRecordToday) {
        this.hasRecordToday = hasRecordToday;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Worker{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", ipAddress='" + ipAddress + '\'' +
                ", createby=" + createby +
                ", createTime=" + createTime +
                ", hasRecordToday=" + hasRecordToday +
                '}';
    }
}
